<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<script src="js/mytoos.js" type="text/javascript" charset="utf-8"></script>
		<script>
			alert(validForm.isPlusInteger(''))
			
			var xmlHttp;

			var requestType = "";
			
			 doHeadRequest('allResponseHeaders', 'http://192.168.1.240:8020/myJSMethod/index.html?__hbt=1512120925096')
			
			function createXMLHttpRequest() {
			
			    if (window.ActiveXObject) {
			
			        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			
			    }
			
			    else if (window.XMLHttpRequest) {
			
			        xmlHttp = new XMLHttpRequest();
			
			    }
			
			}
			
			 
			
			function doHeadRequest(request, url) {
			
			    requestType = request;
			
			    createXMLHttpRequest();
			
			    xmlHttp.onreadystatechange = handleStateChange;
			
			    xmlHttp.open("HEAD", url, true);
			
			    xmlHttp.send(null);
			
			}
			
			 
			
			function handleStateChange() {
			
			    if(xmlHttp.readyState == 4) {
			
			        if(requestType == "allResponseHeaders") {
			
			            getAllResponseHeaders();
			
			        }
			
			        else if(requestType == "lastModified") {
			
			            getLastModified();
			
			        }
			
			        else if(requestType == "isResourceAvailable") {
			
			            getIsResourceAvailable();
			
			        }
			
			    }
			
			}
			
			 
			
			function getAllResponseHeaders() {
			
			    alert(xmlHttp.getAllResponseHeaders());
			
			}
			
			 
			
			function getLastModified() {
			
			    alert("Last Modified: " + xmlHttp.getResponseHeader("Last-Modified"));
			
			}
			
			 
			
			function getIsResourceAvailable() {
			
			    if(xmlHttp.status == 200) {
			
			        alert("Successful response");
			
			    }
			
			    else if(xmlHttp.status == 404) {
			
			        alert("Resource is unavailable");
			
			    }
			
			    else {
			
			        alert("Unexpected response status: " + xmlHttp.status);
			
			    }
			
			}
		</script>
	</body>
</html>
